﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MMDemo
{
    /// <summary>
    /// 以父指针存储结构来保存树
    /// </summary>
    public class TreeNode
    {
        public string data;
        public int parent;

        public TreeNode(string data,int b)
        {
            this.data = data;
            this.parent = b;
        }
        public TreeNode(int b)
        {
            this.data = "";
            this.parent = b;
        }        
       
        public TreeNode()
        {
            data = "";
            this.parent = -1;
        }


    }

}
